package zju.ccnt.rest.domain;

import zju.ccnt.rest.api.ApiEndUser;
import javax.persistence.Entity;

/**
 * Created by zha on 14/11/6.
 */
@Entity
public class EndUser extends BaseEntity{
    private String password;
    private String email;
    private String phone;
    private String name;

    public EndUser() {}

    public EndUser(ApiEndUser apiEndUser, String password) {
        super();
        this.email = apiEndUser.getEmail();
        this.name = apiEndUser.getName();
        this.phone = apiEndUser.getPhone();
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
